<template>
  <div class="w-[1150px] p-12 print-style relative bg-white h-full">
    <div class="flex justify-end w-full items-center">
      <div class="text-center font-semibold text-4xl mr-10">{{ getSystemConfig('HISNAME') }}</div>
      <div class="flex justify-center items-center w-[260px] my-5 ml-28" style="border: 2px solid #000">丨丨丨条形码丨丨丨</div>
    </div>
    <div class="text-center">心电图检查申请单</div>
    <div class="flex-1 mt-8 text-xl">
      <div class="flex justify-between mb-3">
        <div>
          <span class="mr-10">{{ printData?.printData?.detail[0]?.brName }}</span>
          <span>{{ printData?.printData?.detail[0]?.brXb }}</span>
          <span>{{ printData?.printData?.detail[0]?.brAge }}</span>
        </div>
        <span>住院号：{{ printData?.printData?.detail[0]?.key }}</span>
        <span>来源：{{ printData?.printData?.detail[0]?.applyPathName }}</span>
      </div>
      <div>科别/病区-床位号:{{ printData?.printData?.detail[0]?.bqcw }}</div>
      <div class="border border-solid border-x-0 border-b-0 my-10"></div>
      <div class="mb-20">检查项目：{{ printData?.printData?.detail[0]?.items }}</div>
      <div class="mb-20">备注：{{ printData?.printData?.detail[0]?.memo }}</div>
      <div class="absolute bottom-8 w-full">
        <div class="border border-solid border-x-0 border-b-0 mb-10 w-full" style="margin-top: 300px"></div>
        <div class="flex justify-between items-center pr-20">
          <div>申请医师：{{ printData?.printData?.detail[0]?.sqys }}</div>
          <div>申请时间：{{ printData?.printData?.detail[0]?.applyTime }}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { getSystemConfig } from '@/utils/systemConfig'

defineProps({
  printData: {
    type: Object,
    default: () => ({})
  }
})
</script>
<style lang="less" scoped></style>
